package com.stormrage.entity.edu;

import java.io.Serializable;

/**
 * @Title: EduCourse.java
 * @Package com.stormrage.entity.edu
 * @Description: 课程 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月8日 下午2:07:01
 * @version V1.0
 */
public class EduCourse implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 7918851291854896911L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private String course;

	private String detail;

	private String image;

	private Integer lecId; // 讲师ID

	private Integer chap; // 章节是否唯一

	// ------------------------------- Fields -------------------------------

	public EduCourse() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getLecId() {
		return lecId;
	}

	public void setLecId(Integer lecId) {
		this.lecId = lecId;
	}

	public Integer getChap() {
		return chap;
	}

	public void setChap(Integer chap) {
		this.chap = chap;
	}

	// ------------------------------- Fields -------------------------------

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " course - " + course + " detail - " + detail + " image - " + image
				+ " lecId - " + lecId + " chap - " + chap;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		EduCourse entity = (EduCourse) o;

		if (id != null ? !id.equals(entity.id) : entity.id != null)
			return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}

}